package com.gy.def.repository;

import com.gy.def.dataobject.CourseTable;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface CourseRepository extends JpaRepository<CourseTable, String> {

  CourseTable findByCourseNameAndIsDelete(String courseName, int isDelete);

  Page<CourseTable> findByIsDelete(int isDelete, Pageable pageable);

  CourseTable findByCourseId(String courseId);
}
